From bc4fe87e012cc1b06572ca12f1a3b92f6d1757e0 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Thu, 31 Oct 2024 09:09:05 +0700
Subject: detail adress

---
 src/pages/my/address/[id]/edit.jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/pages/my/address/[id]/edit.jsx')

diff --git a/src/pages/my/address/[id]/edit.jsx b/src/pages/my/address/[id]/edit.jsx
index 19d7af41..fdae8bb6 100644
--- a/src/pages/my/address/[id]/edit.jsx
+++ b/src/pages/my/address/[id]/edit.jsx
@@ -45,7 +45,10 @@ export async function getServerSideProps(context) {
     oldSubDistrict: address.subDistrict?.id || '',
     subDistrict: '',
     business_name: '',
+    longtitude: address?.longtitude || 0,
+    latitude: address?.latitude || 0,
+    address_maps: address?.address_maps ? JSON.stringify(address?.addressMaps) : '',
+
   };
-  // console.log('ini default',defaultValues);
   return { props: { id, defaultValues } };
 }
-- 
cgit v1.2.3

